package source.s02.t1.test;

import source.s02.t1.extthread.ThreadA;
import source.s02.t1.extthread.ThreadB;
import source.s02.t1.service.HasSelfPrivateNum;

public class Run {

	public static void main(String[] args) {
		//局部变量线程安全
		HasSelfPrivateNum numRef = new HasSelfPrivateNum();

		ThreadA athread = new ThreadA(numRef);
		athread.start();

		ThreadB bthread = new ThreadB(numRef);
		bthread.start();

		//numRef.addI("a");
		//numRef.addI("b");

	}

}
